Python Trouble with matrix pathfinding (DFS)

join shbcf.ru